package com.bigluo;

import java.lang.reflect.Field;
import java.util.List;

/**
 * Created by luojun on 2017/9/6.
 */
public class A extends B {
    private String aa;
    public String dd;

    public String getAa() {
        return aa;
    }

    public void setAa(String aa) {
        this.aa = aa;
    }

    public String getDd() {
        return dd;
    }

    public void setDd(String dd) {
        this.dd = dd;
    }
    public static void main(String[]args) {
        Class a = A.class;
        Field[] fieldList = a.getDeclaredFields();
        for( Field field : fieldList) {
            System.out.println(field.getName());

        }

    }
}

class B{
    public String bb;
    private String cc;

    public String getBb() {
        return bb;
    }

    public void setBb(String bb) {
        this.bb = bb;
    }

    public String getCc() {
        return cc;
    }

    public void setCc(String cc) {
        this.cc = cc;
    }
}
